package com.kangye.game.service.impl;

import com.kangye.game.dao.TaskDao;
import com.kangye.game.pojo.Task;
import com.kangye.game.service.TaskService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("task")
public class TaskServiceImpl implements TaskService {

    @Resource
    private TaskDao taskDao;


    @Override
    public List<Task> findName() {
        return taskDao.findName();
    }

    @Override
    public List<Task> findAllList(int id) {
        return taskDao.findAllList(id);
    }

    @Override
    public List<Task> FindTask(int a) {
        return taskDao.FindTask(a);
    }

    @Override
    public int  uptask(Task task) {
        int a= taskDao.uptask(task);
        return a;
    }
}
